import com.serookie.entity.SysUser;
import com.serookie.mapper.SysUserMapper;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
import org.springframework.security.crypto.password.PasswordEncoder;

import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.*;

/**
 * @author kevintam
 * @version 1.0
 * @date 2021/5/6 19:28
 */
public class test{
    @Autowired
    private SysUserMapper sysUserMapper;

    @Test
    public void test(){
//       PasswordEncoder password=new BCryptPasswordEncoder();
//        String token = password.encode("o6NAs5JNB5tR47ATPVitnTIJYecc");
//        boolean matches = password.matches("o6NAs5JNB5tR47ATPVitnTIJYecc", "$2a$10$GZ32HsTdO3rUMO3Hr8Y5ROwC5hs2TKVFlQoENRtzJgCo7UJdmP4zi");
//        System.out.println(token);
//        System.out.println(matches);
        DateFormat sdf = new SimpleDateFormat("yyyyMMddHHmmssSSS");
        System.out.println(sdf.format(new Date()));
    }
}
